package com.itheima.feign;

import com.itheima.dto.ArticleSaveDto;
import com.itheima.vo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author :wujunjie
 * createTime :2023-01-03 13:51
 * description :
 */
@FeignClient("heimaLeadnewsArticleService")
@Component
public interface MobileArticleClient {
    @PostMapping("/api/v1/article/save")
    Result save(@RequestBody ArticleSaveDto articleSaveDto);
}
